<template>
  <a-list-info :infoDatas="infoDatas" />
</template>

<script>
import aListInfo from '../aListInfo.vue'

import { infoDatas } from './dataConfig'
export default {
  components: {
    aListInfo,
    
  },
  data() {
    return {
      infoDatas: infoDatas
    }
  },
  created(){
    this.getInfo()
  },
  methods: {
    getInfo() {
      let res = {
        data: {
          customerTaxNo: '1',
          customerAddrTell: '2',
          customerAccountNum: '3',
          invoiceState: '4'
        }
      }
      for (const key in res.data) {
        for (const item of this.infoDatas) {
          if (key == item.id) {
            item.value = res.data[key]
          }
        }
      }
    }
  }
}
</script>

<style></style>
